duplicate filter would crash if there wre no waypoints in the list
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Aug 2003 15:02:01 +0000 (15:02 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 5 Aug 2003 15:02:01 +0000 (15:02 +0000)
gpsbabel/duplicate.c

index 570cf370157182fa43fe9f68f04724a97548071d..15fe41ce447920b75d258e83ec27968eb083d4f4 100644 (file)
@@ -273,7 +273,9 @@ duplicate_process(void)
        }
 
        xfree(htable);
-       free_tree(sup_tree);
+       if ( sup_tree ) {
+               free_tree(sup_tree);
+       }
 }
 
 void